<?php
/**
 * Created by PhpStorm.
 * User: venki
 * Date: 2023/11/17
 * Time: 10:41
 */

namespace app\Events;

use yii\base\Event;

class MyEvent extends Event
{
    public $message;
    const EVENT_BEFORE_VALIDATE = 'eventBeforeValidate';

    public function __construct(string $message)
    {
        parent::__construct();
        $this->message = $message;
    }

    private function test(): string
    {
        return $this->message;
    }
}